package main

import (
	"fmt"
	"io"
	"net/http"
)

const (
	version = "v1.0.0"
)

func handler(w http.ResponseWriter, r *http.Request) {
	fmt.Println(*r)
	io.WriteString(w, fmt.Sprintf("this is httpsbackendservice, version: %s\n", version))
}

func main() {
	http.HandleFunc("/", handler)
	http.ListenAndServeTLS(":7777", "cert.pem", "key.pem", nil)
}
